#pragma once

class Level
{
	friend class WorldMgr;
public:
	Level();
	~Level();

	void		Load(const std::string& name);
	float		GetHeight(int x, int y);

	float		GetMaxHeight() const;
	float		GetMinHeight() const;

private:
	int			m_width;
	int			m_height;
	float*		m_heightmap;

	float		m_maxAllowedHeight;
	float		m_minAllowedHeight;
	int			m_quadSize;

	void		LoadHeightmap(const std::string& levelname);
};

